package com.one.consumer.reserve.model.bean;

import java.util.List;

/**
 * author ：zhulunjun
 * email  ：zhulunjun@qq.com
 * date   ：2018/10/30 10:56 PM
 * description ：
 **/
public class TimeBean {

    /**
     * service_time : 2018-10-31
     * timeBeans : [{"start_time":"08:00","end_time":"10:00"},{"start_time":"10:00","end_time":"12:00"},{"start_time":"12:00","end_time":"14:00"},{"start_time":"14:00","end_time":"16:00"},{"start_time":"16:00","end_time":"18:00"},{"start_time":"18:00","end_time":"20:00"}]
     */

    private String service_time;
    private List<TimeBeansBean> timeBeans;

    public String getService_time() {
        return service_time;
    }

    public void setService_time(String service_time) {
        this.service_time = service_time;
    }

    public List<TimeBeansBean> getTimeBeans() {
        for (TimeBeansBean beansBean : timeBeans){
            beansBean.setTime(getService_time()+"  "+beansBean.getStart_time()+"-"+beansBean.getEnd_time());
            beansBean.setService_time(getService_time());
        }
        return timeBeans;
    }

    public void setTimeBeans(List<TimeBeansBean> timeBeans) {
        this.timeBeans = timeBeans;
    }

    public static class TimeBeansBean {
        /**
         * start_time : 08:00
         * end_time : 10:00
         */

        private String start_time;
        private String end_time;
        private String  service_time;
        private String time;

        public String getService_time() {
            return service_time;
        }

        public void setService_time(String service_time) {
            this.service_time = service_time;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public String getStart_time() {
            return start_time;
        }

        public void setStart_time(String start_time) {
            this.start_time = start_time;
        }

        public String getEnd_time() {
            return end_time;
        }

        public void setEnd_time(String end_time) {
            this.end_time = end_time;
        }

        @Override
        public String toString() {
            return time;
        }
    }
}
